You have to tell sendmail to forward the mail to the right place. Make sure that /etc/sendmail/sendmail.cf is a link to /etc/sendmail/sendmail.mailhost.cf. T
# major relay host: use the $M mailer to send mail to other domains
# To have mail automatically forwarded to other domains, you should
# replace this with the name of your major relay host.
DR mail-relay
CR mail-relay
You can do either of two things. Either edit this file, replacing mail-relay with the machine that's on the other end of your ppp connection (or the name of t
You should also change
# Major relay mailer - typical choice is "ddn" if you are on the
# Defense Data Network (e.g. Arpanet or Milnet). All mail for
# non-local domains will be forwarded to the major relay host using
# the major relay mailer. We chose "uucp" as the default because most
# isolated networks use it to link their network with the outside
# world.
# If you want to use a relay mailer, examine ruleset 0. There are some
# rules that need to be uncommented
DMuucp
to
DMether
so that sendmail tries to send the mail directly, instead of queueing it up for uucp. You also want something like 'sendmail -q' in your /etc/ppp/ip-up script
You'll also want to change the lines toward the end of the file as instructed.
# If you want to pass all other explicit domain names up the ladder
# to our forwarder then uncomment the following line.